$(function() {
  topicList();
});

function topicList() {
  $.ajax({
    method: "GET",
    url: "/api/topic/list",
    data: {
      page: 2,
      size: 10
    },
    success: function(res) {
      var htmlStr = template("tpl-table", res.data);
      $(".topic-list").html(htmlStr);
    }
  });
}
